package zhaowenpu;

import zhaowenpu.dao.Userlnfo;
import zhaowenpu.dao.Userlnfolmpl;

public class Text {
	public static void main(String[] args) {
		Userlnfo u = new Userlnfolmpl();
		String autoCode=u.autoCode();
		String code="";
		if (autoCode==null||autoCode.equals("")) {
			
		} else {
			String substring=autoCode.substring(12);
			int a=Integer.parseInt(substring)+1;
			String b=a+"";
			int th=b.length();
			String lastNum="";
			for (int i = th; i < 4; i++) {
				lastNum+="0";
			}
			code=autoCode.substring(0, 12)+lastNum+b;

		}
		System.out.println(code);
	}

}
